<template>
  <div class="widget">
    <div class="key">{{item.key}}</div>
    <div class="value">{{item.value}}</div>
  </div>
</template>
<script>
export default {
  name: 'Widget',
  props: {
    width: Number,
    height: Number,
    item: Object
  }
}
</script>
<style lang="scss">
  .widget{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #070c1e;
    border: 1px solid #01040f;
    border-radius: 2px;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    .key{
      font-size: 12px;
      color: #fff;
    }
    .value{
      font-size: 30px;
      color: #31a72d;
      font-weight: 700;
    }
  }
</style>